home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12749 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Borland C's tmpnam()
  5. Date: Tue, 02 Apr 96 14:16:50 GMT
  6. Organization: none
  7. Message-ID: <828454610snz@genesis.demon.co.uk>
  8. References: <AD85B1F49668E2D54@mcdiala11.it.luc.edu>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <AD85B1F49668E2D54@mcdiala11.it.luc.edu>
  15.            VArase@varase.it.luc.edu "Verne Arase" writes:
  16.  
  17. >As MFS only created the _illusion_ of folders, all files _were_ in the same
  18. >location in the file system.
  19. >
  20. >As for the file names returned tmpnam(), they are _not_ complete path
  21. >names. Therefore, they are only unique at the branch of the file system
  22. >which is currently the default location.
  23.  
  24. Which is fine because ANSI C has no concept of a filesystem hierarchy so
  25. if you do anything to change your directory/folder you invoke undefined
  26. behaviour and you lose any guarantees that tmpnam() gave you.
  27.  
  28. -- 
  29. -----------------------------------------
  30. Lawrence Kirby | fred@genesis.demon.co.uk
  31. Wilts, England | 70734.126@compuserve.com
  32. -----------------------------------------
  33.